package com.lanchetech.dao;

import com.lanchetech.entity.VideoGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VideoGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VideoGoods record);

    int insertSelective(VideoGoods record);

    VideoGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VideoGoods record);

    int updateByPrimaryKey(VideoGoods record);

    VideoGoods findOneByUserIdAndVideoId(@Param("userId")Long userId,@Param("videoId")Long videoId);


    List<VideoGoods> findAllByUserIdAndVideoIds(@Param("userId") Long userId, @Param("videoIds") List<Long> videoIds);

}